﻿//-----------------------------------------------------------------------
// <copyright file="BooleanToStringConverter.cs" company="Microsoft Corporation">
//     Copyright Microsoft Corporation. All Rights Reserved. This code released under the terms of the Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.) This is sample code only, do not use in production environments.
// </copyright>
//-----------------------------------------------------------------------
namespace vsarFlightPlan.Converters
{
    using System;
    using Windows.UI.Xaml.Data;

    public class BooleanToStringConverter : IValueConverter
    {
        public string FalseValue { get; set; }

        public string TrueValue { get; set; }

        public object Convert(object value, Type targetType, object parameter, string language)
        {
            return (bool)value ? TrueValue : FalseValue;
        }

        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            throw new NotImplementedException();
        }
    }
}